package com.sxkiler.demo;

import com.sxkiler.demo.common.AlgorithmDetail;

public class Test {
    public static void main(String args[]) throws Exception{
//        String javaCode = "/**↵ * Definition for singly-linked list.↵ * public class ListNode {↵} *//**↵ * Definition for singly-linked list.↵ * public class TreeNode {↵}  */class Solution {↵    public ListNode addTwoNumbers(ListNode l1, ListNode l2) {↵        ↵    }↵}";
//        String javaCode = "/**↵ * Definition for singly-linked list.↵ * public class ListNode {↵ *     int val;↵ *     ListNode next;↵ *     ListNode() {}↵ *     ListNode(int val) { this.val = val; }↵ *     ListNode(int val, ListNode next) { this.val = val; this.next = next; }↵ * }↵ */↵class Solution {↵    public ListNode addTwoNumbers(ListNode l1, ListNode l2) {↵        ↵    }↵}";
        String javaCode = "/**\n" +
                " * Definition for singly-linked list.\n" +
                " * public class ListNode {\n" +
                " *     int val;\n" +
                " *     ListNode next;\n" +
                " *     ListNode(int x) { val = x; }\n" +
                " * }\n" +
                " */\n" +
                "class Solution {\n" +
                "    public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n" +
                "\n" +
                "    }\n" +
                "}";
        System.out.println(AlgorithmDetail.getDeclareClass(javaCode));
    }

}
